﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CollapsiblePanelExtender.aspx.cs"
    Inherits="EngineeringMaster.Administrator.CollapsiblePanelExtender" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div style="margin-bottom: 50px">
        <asp:LinkButton ID="LinkButton1" runat="server">>></asp:LinkButton></div>
    <div>
        <asp:CollapsiblePanelExtender ID="cpe" runat="Server" TargetControlID="Panel1" CollapsedSize="0"
             Collapsed="True" ExpandControlID="LinkButton1" CollapseControlID="LinkButton1"
             ExpandedSize = "1000" AutoCollapse="False" AutoExpand="False" ExpandDirection="Vertical" />
        <div style = "margin-top: 100px; margin-left: 100px">
            <asp:Panel ID="Panel1" runat="server">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Img/1.png" BorderWidth="10px" BorderColor="#FFCC99" /> 
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
                <Columns>
                    <asp:BoundField DataField="CourseName" HeaderText="CourseName" SortExpression="CourseName" />
                    <asp:BoundField DataField="CourseYear" HeaderText="CourseYear" SortExpression="CourseYear" />
                    <asp:BoundField DataField="CourseSemester" HeaderText="CourseSemester" SortExpression="CourseSemester" />
                    <asp:BoundField DataField="Bilingual" HeaderText="Bilingual" SortExpression="Bilingual" />
                    <asp:BoundField DataField="ExternalOrNot" HeaderText="ExternalOrNot" SortExpression="ExternalOrNot" />
                    <asp:BoundField DataField="StudentNumber" HeaderText="StudentNumber" SortExpression="StudentNumber" />
                    <asp:BoundField DataField="ExamMode" HeaderText="ExamMode" SortExpression="ExamMode" />
                    <asp:BoundField DataField="Textbook" HeaderText="Textbook" SortExpression="Textbook" />
                    <asp:BoundField DataField="Credit" HeaderText="Credit" SortExpression="Credit" />
                    <asp:BoundField DataField="TeaSchoolID" HeaderText="TeaSchoolID" SortExpression="TeaSchoolID" />
                    <asp:BoundField DataField="Category" HeaderText="Category" SortExpression="Category" />
                    <asp:BoundField DataField="Property" HeaderText="Property" SortExpression="Property" />
                    <asp:BoundField DataField="InstruMode" HeaderText="InstruMode" SortExpression="InstruMode" />
                    <asp:BoundField DataField="ClassTime" HeaderText="ClassTime" SortExpression="ClassTime" />
                    <asp:BoundField DataField="Place" HeaderText="Place" SortExpression="Place" />
                    <asp:BoundField DataField="CreditHour" HeaderText="CreditHour" SortExpression="CreditHour" />
                </Columns>
            </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MSEDataBaseConnectionString %>"
                    SelectCommand="SELECT [CourseName], [CourseYear], [CourseSemester], [Bilingual], [ExternalOrNot], [StudentNumber], [ExamMode], [Textbook], [Credit], [TeaSchoolID], [Category], [Property], [InstruMode], [ClassTime], [Place], [CreditHour] FROM [Course]">
                </asp:SqlDataSource>
           
        </div>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
